﻿using System;


namespace advadev.CanOpen
{

    /// <summary>
    /// Represents a value changed event argument
    /// </summary>
    public class ValueChangedEventArgs
    {

        /// <summary>
        /// Initializes a new instance of the ValueChangedEventArgs class by the
        /// given parameter
        /// </summary>
        /// <param name="oldValue">
        /// Old value
        /// </param>
        /// <param name="currentValue">
        /// Current value
        /// </param>
        public ValueChangedEventArgs(object oldValue, object currentValue)
        {
            OldValue = oldValue;
            CurrentValue = currentValue;
        }


        /// <summary>
        /// Gets the old value
        /// </summary>
        public object OldValue
        {
            get;
            private set;
        }

        /// <summary>
        /// Gets the current value
        /// </summary>
        public object CurrentValue
        {
            get;
            private set;
        }

    }

}
